package in.iqing.control.helper;

/**
 * Created by ZuoShu on 2015/7/18.
 */
public class ImageResourceHelper {
    private static final String AVATAR = "-avatar";
    private static final String AVATAR_THUMBNAIL = "-avatarThumbnail";
    // 分类
    private static final String CATEGORY = "-category";
    // 书籍详情封面
    private static final String COVER = "-cover";
    //
    private static final String COVER_THUMBNAIL = "-coverThumbnail";
    private static final String ILLUSTRATION = "-illustration";
    private static final String SLIDE = "-slide";

    public static String generateSlideImageUrl(String sourceUrl) {
        return sourceUrl + SLIDE;
    }

    public static String generateCategoryImageUrl(String sourceUrl) {
        return sourceUrl + CATEGORY;
    }

    public static String generateCoverImageUrl(String sourceUrl) {
        return sourceUrl + COVER;
    }

    public static String generateCoverThumbnailImageUrl(String sourceUrl) {
        return sourceUrl + COVER_THUMBNAIL;
    }

    public static String generateIllustrationImageUrl(String sourceUrl) {
        return sourceUrl + ILLUSTRATION;
    }
}
